package com.lwt.monstermall.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 1.方便检索
 * {
 *     skuId:1
 *     spuId:1
 *     skuTitle:华为
 *     price:998
 *     saleCount:99
 *     attrs:[
 *          {尺寸：5寸},
 *          {CPU:高通945}
 *          {分辨率：全高清}
 *      ]
 * }
 *
 * 2.
 * spu索引{
 *     skuId:1
 *     spuId:1
 *     xxxx
 * }
 *  attr索引{
 *      spuid:11,
 *      attrs:[
 *           {尺寸：5寸},
 *           {CPU:高通945}
 *           {分辨率：全高清}
 *        ]
 *  }
 *
 */
@EnableRedisHttpSession
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class MallSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallSearchApplication.class, args);
    }

}
